console.log('-----------------')
console.log('test7')

function* fibonacci(){
    let [prev, curr] = [0,1];
    for(;;){
        [prev, curr] = [curr, prev + curr]
        yield curr;
    }
}
for(let n of fibonacci()){
    if(n > 1000) break;
    console.log(n)
}
